import Foundation

protocol DestinationService {
    func fetchPopularDestinations() async throws -> [Destination]
}

struct MockDestinationService: DestinationService {
    func fetchPopularDestinations() async throws -> [Destination] {
        try await Task.sleep(nanoseconds: 200_000_000)
        return [
            Destination(
                id: UUID(),
                name: "富士山",
                city: "静冈",
                country: "日本",
                description: "日本最高峰，四季皆景。",
                imageURL: nil
            ),
            Destination(
                id: UUID(),
                name: "卢浮宫",
                city: "巴黎",
                country: "法国",
                description: "世界知名艺术博物馆。",
                imageURL: nil
            )
        ]
    }
}


